﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site1.Master" AutoEventWireup="true"
    CodeBehind="Cadastro.aspx.cs" Inherits="ProjetoWebsite.Cadastro" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <h1>
        Cadastre-se</h1>
    <asp:Label ID="lblNome" runat="server" Text="Nome:"></asp:Label>
    <asp:TextBox ID="txtNome" runat="server" ValidationGroup="groupCadastro"></asp:TextBox>
    <asp:RequiredFieldValidator ID="rfvNome" runat="server" ForeColor="Red" ControlToValidate="txtNome"
        ErrorMessage="*" ValidationGroup="groupCadastro"></asp:RequiredFieldValidator>
    <br />
    <asp:Label ID="lblSenha" runat="server" Text="Senha:"></asp:Label>
    <asp:TextBox ID="txtSenha" runat="server" ValidationGroup="groupCadastro"></asp:TextBox>
    <asp:RequiredFieldValidator ID="rfvSenha" runat="server" ForeColor="Red" ControlToValidate="txtSenha"
        ErrorMessage="*" ValidationGroup="groupCadastro"></asp:RequiredFieldValidator>
    <br />
    <asp:Label ID="lblEmail" runat="server" Text="E-mail:"></asp:Label>
    <asp:TextBox ID="txtEmail" runat="server" ValidationGroup="groupCadastro"></asp:TextBox>
    <asp:RequiredFieldValidator ID="rfvEmail" runat="server" ForeColor="Red" ControlToValidate="txtEmail"
        ErrorMessage="* " ValidationGroup="groupCadastro"></asp:RequiredFieldValidator>
    <asp:RegularExpressionValidator ID="revEmail" runat="server" ForeColor="Red" ErrorMessage=" E-mail inválido "
        ControlToValidate="txtEmail" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"
        ValidationGroup="groupCadastro"></asp:RegularExpressionValidator>
    <br />
    <asp:Label ID="lblCPF" runat="server" Text="CPF:"></asp:Label>
    <asp:TextBox ID="txtCPF" runat="server" ValidationGroup="groupCadastro"></asp:TextBox>
    <asp:RequiredFieldValidator ID="rfvCPF" runat="server" ForeColor="Red" ControlToValidate="txtCPF"
        ErrorMessage="*" ValidationGroup="groupCadastro"></asp:RequiredFieldValidator>
    <br />
    <asp:Label ID="lblLogradouro" runat="server" Text="Logradouro:"></asp:Label>
    <asp:TextBox ID="txtLogradouro" runat="server" ValidationGroup="groupCadastro"></asp:TextBox>
    <asp:RequiredFieldValidator ID="rfvLogradouro" runat="server" ForeColor="Red" ControlToValidate="txtLogradouro"
        ErrorMessage="*" ValidationGroup="groupCadastro"></asp:RequiredFieldValidator>
    <br />
    <asp:Label ID="lblNumero" runat="server" Text="Número:"></asp:Label>
    <asp:TextBox ID="txtNumero" runat="server" ValidationGroup="groupCadastro"></asp:TextBox>
    <asp:RequiredFieldValidator ID="rfvNumero" runat="server" ForeColor="Red" ControlToValidate="txtNumero"
        ErrorMessage="*" ValidationGroup="groupCadastro"></asp:RequiredFieldValidator>
    <br />
    <asp:Label ID="lblBairro" runat="server" Text="Bairro:"></asp:Label>
    <asp:TextBox ID="txtBairro" runat="server" ValidationGroup="groupCadastro"></asp:TextBox>
    <asp:RequiredFieldValidator ID="rfvBairro" runat="server" ForeColor="Red" ControlToValidate="txtBairro"
        ErrorMessage="*" ValidationGroup="groupCadastro"></asp:RequiredFieldValidator>
    <br />
    <asp:Label ID="lblCEP" runat="server" Text="CEP:"></asp:Label>
    <asp:TextBox ID="txtCEP" runat="server" ValidationGroup="groupCadastro"></asp:TextBox>
    <asp:RequiredFieldValidator ID="rfvCEP" runat="server" ForeColor="Red" ControlToValidate="txtCEP"
        ErrorMessage="*" ValidationGroup="groupCadastro"></asp:RequiredFieldValidator>
    <br />
    <asp:Label ID="lblCidade" runat="server" Text="Cidade:"></asp:Label>
    <asp:TextBox ID="txtCidade" runat="server" ValidationGroup="groupCadastro"></asp:TextBox>
    <asp:RequiredFieldValidator ID="rfvCidade" runat="server" ForeColor="Red" ControlToValidate="txtCidade"
        ErrorMessage="*" ValidationGroup="groupCadastro"></asp:RequiredFieldValidator>
    <br />
    <asp:Label ID="lblEstado" runat="server" Text="Estado:"></asp:Label>
    <asp:DropDownList ID="ddlEstado" runat="server" ValidationGroup="groupCadastro">
        <asp:ListItem Selected="True" Value="AC"></asp:ListItem>
        <asp:ListItem Value="AL"></asp:ListItem>
        <asp:ListItem Value="AP"></asp:ListItem>
        <asp:ListItem Value="AM"></asp:ListItem>
        <asp:ListItem Value="BA"></asp:ListItem>
        <asp:ListItem Value="CE"></asp:ListItem>
        <asp:ListItem Value="DF"></asp:ListItem>
        <asp:ListItem Value="ES"></asp:ListItem>
        <asp:ListItem Value="GO"></asp:ListItem>
        <asp:ListItem Value="MA"></asp:ListItem>
        <asp:ListItem Value="MT"></asp:ListItem>
        <asp:ListItem Value="MS"></asp:ListItem>
        <asp:ListItem Value="MG"></asp:ListItem>
        <asp:ListItem Value="PA"></asp:ListItem>
        <asp:ListItem Value="PR"></asp:ListItem>
        <asp:ListItem Value="PB"></asp:ListItem>
        <asp:ListItem Value="PE"></asp:ListItem>
        <asp:ListItem Value="PI"></asp:ListItem>
        <asp:ListItem Value="RJ"></asp:ListItem>
        <asp:ListItem Value="RN"></asp:ListItem>
        <asp:ListItem Value="RS"></asp:ListItem>
        <asp:ListItem Value="RO"></asp:ListItem>
        <asp:ListItem Value="RR"></asp:ListItem>
        <asp:ListItem Value="SC"></asp:ListItem>
        <asp:ListItem Value="SP"></asp:ListItem>
        <asp:ListItem Value="SE"></asp:ListItem>
        <asp:ListItem Value="TO"></asp:ListItem>
    </asp:DropDownList>
    <br />
    <br />
    <asp:Label ID="lblAviso" runat="server" ForeColor="Red" Text="*Preenchimento de campo obrigatório"></asp:Label>
    <br />
    <br />
    <asp:Button ID="btnCadastrar" runat="server" Text="Cadastrar-se" OnClick="btnCadastrar_Click"
        ValidationGroup="groupCadastro" />
</asp:Content>
